import Vue from 'vue'
import Vuex from 'vuex'
import actions from './action'
import mutations from './mutations'
import getter from './getter'
import state from './state'
import Administrator from './Administrator'
import schoolAuthority from './schoolAuthority'
import staff from './staff'
import student from './student'
Vue.use(Vuex)

const store = new Vuex.Store({
    mutations,
    actions,
    getter,
    state,
    modules: {
        Administrator,
        schoolAuthority,
        staff,
        student
    }
})
export default store
